/*
 * @Author: Luo jiaxing 
 * @Date: 2017-05-23 15:40:33 
 * @Last Modified by: cgd
 * @Last Modified time: 2017-11-01 17:26:01
 * 供水形式分析
 */
Ext.define('Admin.view.needWater.supplySitAnalysis.SupplySitAnalysis', {
    extend: 'Ext.container.Container',
    xtype: 'supplySitAnalysis',
    requires: ['Admin.view.needWater.supplySitAnalysis.SupplySitAnalysisController'],
    controller: 'supplySitAnalysisController',
    margin: 10,
    layout: {
        type: 'hbox',
        align: 'stretch'
    },
    items: [{
        flex: 1,
        margin: 5,
        cls: 'shadow',
        border: false,
        style: 'border: 1px solid #ccc',
        items: [{
            xtype: 'segmentedbutton',
            // cls: 'x-box-item',
            dock: 'left',
            minWidth: 200,
            items: [{
                width: 100,
                text: '行政分区',
                pressed: true,
                listeners: {
                    "click": 'changeType1'
                }
            }, {
                width: 100,
                text: '水资源分区',
                listeners: {
                    "click": 'changeType2'
                }
            }]
        }, {
            margin: 5,
            // html: '<div style="width: 100%;height: 700px;margin: auto;' +
            // 'background:url(\'' + $.dispatch.imgPath('gsxsfx.png') + '\') no-repeat;background-size:100% 100%;"></div>'
        }]
    }, {
        flex: 2,
        xtype: 'panel',
        margin: 5,
        cls: 'shadow',
        border: false,
        style: 'border: 1px solid #ccc',
        listeners: {
            resize: 'initChart'
        }
    }]
})